<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        住院护理
    </title>
    <style>
        th{
            text-align: center;
        }
        .topTitle {
            font-size: 16px;
            line-height: 30px;
            text-align: center;
        }
        .spp{
            height:22px;
            line-height:22px;
            padding:0 5px;
            font-size:13px;
            background-color:#009688;
            display:inline-block;
            color:#fff;
            white-space:nowrap;
            text-align:center;
            border:none;
            border-radius:0px;
            cursor:pointer;
            opacity:.9;
        }
    </style>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
    <link rel="stylesheet" href="../css/pag.css" media="all">
    <link rel="stylesheet" href="../lib/layui/css/layui.css" media="all">
    <link type="text/css" rel="stylesheet" href="../js/jedate/test/jeDate-test.css">
    <link type="text/css" rel="stylesheet" href="../js/jedate/skin/jedate.css">
    <script type="text/javascript" src="../js/jedate/src/jedate.js"></script>
</head>
<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>住院管理</cite></a>
              <a><cite>护理事务</cite></a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon"
                                                                        style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <form class="layui-form x-center" action="" style="width:85%">
        <input type="hidden" name="currentPageNo" id="currentPageNo" value="${currentPageNo}">
        <div class="layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">住院号</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryUserId" value="<c:if test='${qryUserId != 0}'>${qryUserId}</c:if>" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryUserName" value="${qryUserName}" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">科室</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryKeshi" value="${qryKeshi}" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-input-inline" style="width:80px;height: 80px">
                    <button class="layui-btn" lay-submit="" lay-filter="*">搜索</button>
                </div>
            </div>
        </div>
    </form>

        <div class="topTitle">
            <strong>待办护理任务</strong>
        </div>
    <span class="x-right" style="line-height:25px" align="left">共${totalCount}条记录&nbsp;&nbsp;&nbsp;&nbsp;第${currentPageNo}页/共${totalPageCount}页</span>
    <table class="tablelist">
        <thead>
        <tr >
            <th width="10%">
                日期
            </th>
            <th width="10%">
                时间
            </th>
            <th width="10%">
                住院号
            </th>
            <th width="10%">
                姓名
            </th>
            <th width="10%">
                床号
            </th>
            <th width="10%">
                科室
            </th>
            <th>
                医嘱
            </th>
            <th width="10%">
                操作
            </th>
        </tr>
        </thead>
        <tbody class="ss">
        <c:forEach var="unyz" items="${zuyuanyzs}">
            <tr>
            <td><fmt:formatDate value="${unyz.ZDate}" pattern="YYYY-MM-dd"/> </td>
            <td><fmt:formatDate value="${unyz.ZTime}" pattern="hh:mm"/> </td>
            <td id="userId">${unyz.userId}</td>
            <td><a href="/brck?userId=${unyz.userId}" style="text-decoration:underline">${unyz.yuName}</a></td>
            <td>${unyz.bNo}</td>
            <td>${unyz.ykName}</td>
            <td>${unyz.zsummary}</td>
            <td><a style="color:#106ea9;text-decoration:none"  onclick="zhuyuanhuli(${unyz.userId},${unyz.ZId})" href="javascript:;" title="确认执行">
                <button class="spp">确认执行</button>
            </a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="page" v-show="show" >
        <div class="pagelist">

            <input type="hidden" name="totalPageCount" id="totalPageCount" value="${totalPageCount}">
            <span class="jump"><a href="javascript:page_nav(document.forms[0],1);"> 首页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo - 1 });">上一页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo + 1 });">下一页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${totalPageCount });">尾页</a></span>
            <span class="jumppoint">跳转到：</span>
            <span class="jumpinp"><input type="text" name="inputPage" id="inputPage"/></span>
            <button type="button" class="jump gobtn" onClick='jump_to(document.forms[0],document.getElementById("inputPage").value)'>GO</button>
            </span>
        </div>
        <div>
</div>
<br/>
<br/>
<br/>
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../lib/layui/layui.all.js" charset="utf-8"></script>
<script src="../js/x-layui.js" charset="utf-8"></script>
<script src="../js/jquery2.js" charset="utf-8"></script>
<script src="../js/js.js" charset="utf-8"></script>
<script src="../js/zygl/rollpage.js" charset="utf-8"></script>
<script>
    layui.use(['laydate', 'element', 'laypage', 'layer'], function () {
        $ = layui.jquery;//jquery
        lement = layui.element();//面包导航
        laypage = layui.laypage;//分页
        layer = layui.layer;//弹出层

    });

    /*确认执行*/
    function zhuyuanhuli(userId,zId) {
        var uId= $("#userId").text();
        console.log("uId"+uId);
            layer.open({
                type: 2,
                area: ['500px', '400px'],
                fix: false, //不固定
                maxmin: true,
                shadeClose: true,
                shade:0.4,
                title: '确认执行',
                content: '/zxhl/'+zId
            });
    }

</script>
<script>
    $('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>